<template>
<div class="chart-main">
  <div class="chart-title">
    <span class="title-text">高校分布</span>
  </div>
  <ChartUniversity :navInfo="navInfo" :selectedCity="selectedCity"/>
  <div class="chart-title">
    <span class="title-text">男女分布</span>
  </div>
  <ChartGender :navInfo="navInfo" :selectedCity="selectedCity"/>
</div>
</template>

<script lang="ts" setup>
import ChartUniversity from "./ChartUniversity.vue"
import ChartGender from "./ChartGender.vue"

const props = defineProps({
  navInfo:{
    type:Object,
    default:{
      navIndex:0,
      checkNav:[]
    }
  },
  selectedCity:{
    type:Object,
    default:{}
  }
})
</script>

<style scoped lang="less">
.chart-main{
  position: absolute;
  top: 0;
  right: 40px;
  height: calc(100% - 122px);
  z-index: 2;
  padding-bottom: 40px;
  .chart-title{
    height: 37px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background-image: url("@/assets/images/dataCentre/recruitmentProgress/viewtop.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    margin-top: 36px;
    .title-text{
      font-weight: 600;
      font-size: 18px;
      margin-left: 40px;
    }
  }
}
</style>
